package imagecutter.amra;

import java.awt.image.BufferedImage;
import java.io.File;

public class FileOperation {

    /**
     * Load image from a file.
     * @param file with will be loaded
     * @return loaded image
     */
    public static BufferedImage loadImageFromFile(File file){
        return null;
    }

    /**
     * Saves a <code>BufferedImage</code> to file.
     * @param image to save
     * @param file to save into
     */
    public static void saveImagetoFile(BufferedImage image, File file){
    }

    public static boolean checkFile(String path) {
        File file = new File(path);
        return file.exists() && file.isFile();
    }

    public static boolean checkFile(File file) {
        return file.exists() && file.isFile();
    }

}
